home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / X11 / config / DragonFly.cf < prev    next >
Encoding:
Text File  |  2006-12-20  |  9.2 KB  |  355 lines

  1. XCOMM $XdotOrg: util/cf/DragonFly.cf,v 1.1 2005/03/02 11:20:29 gisburn Exp $
  2.  
  3. #define UseElfFormat        YES
  4.  
  5. #define OSBinaryFormat        [ELF]
  6.  
  7. #ifndef OSName
  8. #define OSName            DefaultOSName OSBinaryFormat
  9. #endif
  10. #ifndef OSVendor
  11. #define OSVendor        /**/
  12. #endif
  13. #ifndef OSMajorVersion
  14. #define OSMajorVersion        DefaultOSMajorVersion
  15. #endif
  16. #ifndef OSMinorVersion
  17. #define OSMinorVersion        DefaultOSMinorVersion
  18. #endif
  19.  
  20. #ifndef OSRelVersion
  21. /* Include this to get finer-grained information about the OS version */
  22. #include "/usr/include/osreldate.h"
  23. #define OSRelVersion __DragonFly_version
  24. #endif
  25.  
  26. XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion) (OSRelVersion)
  27.  
  28. /*
  29.  * Base OS setup
  30.  */
  31. #define HasCplusplus             YES
  32. #define GccUsesGas               YES
  33. #define UseGas                   YES
  34. #define GnuCpp                   YES
  35. #define HasBasename              YES
  36. #define HasBSD44Sockets          YES
  37. #define HasDlopen                YES
  38. #define HasGetIfAddrs            YES
  39. #define HasIssetugid             YES
  40. #define HasLibCrypt              YES
  41. #define HasMktemp                YES
  42. #define HasNCurses               YES
  43. #define HasNdbm                  YES
  44. #define HasPlugin                YES
  45. #define HasPoll                  YES
  46. #define HasPutenv                YES
  47. #define HasUsableFileMmap        YES
  48. #define HasSetProcTitle          YES
  49. #define HasShm                   YES
  50. #define HasSnprintf              YES
  51. #define HasStrlcat               YES
  52. #define HasVarDb                 YES
  53. #define HasVarRun                YES
  54. #define HasWChar32               YES
  55. #define HasWeakSymbols           UseElfFormat
  56. #define BuildXaw6                NO /*depreciated*/
  57. #define BuildXaw7                NO /*depreciated*/
  58. #define BuildXaw                 YES /*needed*/
  59. #ifndef BuildPDFdocs
  60. #define BuildPDFdocs NO
  61. #endif
  62. #define IPv6SocketsAlsoIPv4      NO
  63. #define InstallXloadSetGID       NO
  64.  
  65. /*
  66.  * Multi-thread safe libs
  67.  */
  68. #ifndef HasLibPthread
  69. # define HasLibPthread           NO
  70. #endif
  71. #define HasPosixThreads          YES
  72. #define ThreadedX                YES
  73. #define SystemMTDefines          -D_REENTRANT -D_THREAD_SAFE
  74. #define HasThreadSafeAPI         YES
  75. #define MTSafeAPIDefines         -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI
  76. #if HasLibPthread
  77. # define ThreadsLibraries        -lpthread
  78. #else
  79. # define ThreadsLibraries        -pthread
  80. #endif
  81.  
  82.  
  83. #define AvoidNullMakeCommand     YES
  84. #define StripInstalledPrograms   YES
  85. #define CompressAllFonts         YES
  86. #define Malloc0ReturnsNull       YES
  87. #define NeedConstPrototypes      YES
  88. #define NeedFunctionPrototypes   YES
  89. #define NeedNestedPrototypes     YES
  90. #define NeedVarargsPrototypes    YES
  91. #define NeedWidePrototypes       NO
  92.  
  93. #define MkdirHierCmd             mkdir -p
  94.  
  95. #define LexCmd                   flex -l
  96. #define HasFlex                  YES
  97.  
  98. #ifndef CcCmd
  99. # define CcCmd                   cc
  100. #endif
  101. #ifndef CplusplusCmd
  102. # define CplusplusCmd            c++
  103. #endif
  104. #define CppCmd                   /usr/bin/cpp
  105. #define PreProcessCmd            CppCmd
  106. #define StandardCppOptions       -traditional
  107. #define StandardCppDefines       /**/
  108. #ifndef DefaultCCOptions
  109. # if defined(UseInstalled)
  110. #  define DefaultCCOptions       /**/
  111. # else
  112. #  if defined(HasGcc3) && HasGcc3
  113. #   define NoSystemWarn         -Wno-system-headers
  114. #  else
  115. #   define NoSystemWarn
  116. # endif
  117. # define DefaultCCOptions -ansi NoSystemWarn -Dasm=__asm GccWarningOptions
  118. #endif
  119. #ifndef ExtraLibraries
  120. /* support for multi-byte locales is in libxpg4 rather than libc */
  121. #define ExtraLibraries          -lxpg4
  122. #endif
  123. #define HasSetUserContext       YES
  124. #define HasGetpeereid           YES
  125. #define HasMTRRSupport          YES
  126.  
  127. #ifndef BuildXF86DRI
  128. # define BuildXF86DRI           YES
  129. #endif
  130.  
  131. #if defined(i386Architecture)
  132. #define HasAgpGart              YES
  133. #endif
  134.  
  135. /*
  136.  * SSE and 3DNow will be autodetected, so binutils is the only
  137.  * requirement for enabling this.
  138.  */
  139. #if defined(i386Architecture)
  140. # define HasX86Support          YES
  141. # define HasMMXSupport          YES
  142. # define Has3DNowSupport        YES
  143. # define HasSSESupport          YES
  144. #else
  145. # define HasX86Support          NO
  146. # define HasMMXSupport          NO
  147. # define Has3DNowSupport        NO
  148. # define HasSSESupport          NO
  149. #endif
  150.  
  151. #ifndef UseRpath
  152. # define UseRpath               YES
  153. #endif
  154.  
  155. #ifndef RpathLoadFlags
  156. # if UseRpath
  157. #  define RpathLoadFlags        -Wl,-rpath,$(USRLIBDIRPATH)
  158. # else
  159. #  define RpathLoadFlags        /**/
  160. # endif
  161. #endif
  162.  
  163. #ifndef ExtraLoadFlags
  164. # if !defined(UseInstalled)
  165. #  define ExtraLoadFlags     RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
  166. # else
  167. #  define ExtraLoadFlags     RpathLoadFlags
  168. # endif
  169. #endif
  170.  
  171. #endif
  172.  
  173. #ifndef LibraryRpathLoadFlags
  174. # if UseRpath
  175. #  define LibraryRpathLoadFlags  -rpath $(USRLIBDIRPATH)
  176. # else
  177. #  define LibraryRpathLoadFlags  /**/
  178. # endif
  179. #endif
  180.  
  181. #ifndef SharedLibraryLoadFlags
  182. # define SharedLibraryLoadFlags  -shared LibraryRpathLoadFlags
  183. #endif
  184.  
  185. #ifndef HasZlib
  186. # define HasZlib                 YES
  187. #endif
  188.  
  189. #ifndef HasPam
  190. # define HasPam                  YES
  191. #endif
  192.  
  193. /* Take from FreeBSD */
  194. /* There are two options for building.  One is to assume that the system has
  195.  * many of the dependencies provided by the ports tree.  The other is to just
  196.  * build everything from this tree.
  197.  */
  198.  
  199. #ifndef HasStandardPorts
  200. # define HasStandardPorts        YES
  201. #endif
  202.  
  203. #ifndef LocalBase
  204. # define LocalBase               /usr/local
  205. #endif
  206. #ifndef X11Base
  207. # define X11Base                 /usr/X11R6
  208. #endif
  209.  
  210. #if HasStandardPorts
  211.  
  212. #ifndef HasExpat
  213. # define HasExpat                YES
  214. # define ExpatDir                LocalBase
  215. #endif
  216.  
  217. #ifndef HasFreetype2
  218. # define HasFreetype2            NO /* set this to YES once DragonFly ships FT218 */
  219. # define Freetype2Dir            LocalBase
  220. #endif
  221.  
  222. #ifndef HasFontconfig
  223. # define HasFontconfig           YES
  224. # define FontconfigDir           X11Base
  225. #endif
  226.  
  227. #ifndef HasLibpng
  228. # define HasLibpng               YES
  229. # define LibpngDir               LocalBase
  230. #endif
  231.  
  232. #endif /* HasStandardPorts */
  233.  
  234. #undef  InstallCmd
  235. #define InstallCmd               /usr/bin/install
  236.  
  237. #define AsmElfDefines            -D__ELF__
  238.  
  239. #if GccUsesGas
  240. # define GccGasOption            -DGCCUSESGAS
  241. # define AsmDefines              -DUSE_GAS AsmElfDefines
  242. #else
  243. # define GccGasOption            /**/
  244. # define AsmDefines              AsmElfDefines
  245. #endif
  246.  
  247. #ifdef i386Architecture
  248. #define ServerExtraDefines GccGasOption XFree86ServerDefines
  249. #endif
  250. #if defined(Sparc64Architecture) || defined(ia64Architecture) || \
  251.     defined(AMD64Architecture)
  252. #define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
  253. #endif
  254.  
  255. #define StandardDefines          -DCSRG_BASED
  256.  
  257. #define ServerOSDefines          XFree86ServerOSDefines -DDDXTIME
  258. #define XawI18nDefines           -DUSE_XWCHAR_STRING
  259. #define HasMakefileSafeInclude   YES
  260. #define IncludeMakefile(file) @@# dependencies are in .depend
  261. #define DependFileName        .depend
  262. #ifndef DoLoadableServer
  263. # define DoLoadableServer      YES
  264. #endif
  265. #ifndef ForceNormalLib
  266. # define ForceNormalLib        YES
  267. #endif
  268. #define HasMkstemp        YES
  269.  
  270. #define OptimizedCDebugFlags -O
  271.  
  272. #ifndef PreIncDir
  273. # define PreIncDir    /usr/include
  274. #endif
  275.  
  276. #define HasGroff    YES
  277. #define NroffCmd    env GROFF_NO_SGR=y groff -Tascii
  278. #define SetTtyGroup    YES
  279.  
  280. #ifndef ExtraFilesToClean
  281. # define ExtraFilesToClean *.core
  282. #endif
  283.  
  284. #define DefaultUserPath        /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/local/bin
  285. #define DefaultSystemPath    /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR)
  286. #ifndef SystemManDirectory
  287. # define SystemManDirectory    /usr/share/man
  288. #endif
  289.  
  290. #define InstKmemFlags    -g kmem -m 2755
  291.  
  292. /*
  293.  * Compress manual pages
  294.  */
  295. #ifndef CompressManPages
  296. # define CompressManPages    YES
  297. #endif
  298.  
  299. #define HasBsdMake    YES
  300.  
  301. #ifndef StaticLibrary
  302. # define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
  303. #endif
  304.  
  305. #define DlLibrary        -Wl,--export-dynamic
  306.  
  307. #ifndef PamLibraries
  308. # define PamLibraries        -lpam DlLibrary
  309. #endif
  310.  
  311. #ifndef SharedLibXdmGreet
  312. # define SharedLibXdmGreet        NO
  313. #endif
  314.  
  315. /*
  316.  * On FreeBSD, the run-time loader will use the built-in "rpath" before
  317.  * LD_LIBRARY_PATH.  This means that utilities like mkfontdir will load
  318.  * installed libraries (if they exist) in preference to the ones in the
  319.  * build tree, even though LD_LIBRARY_PATH points to the build tree.
  320.  * This can result in the build failing.  One way to avoid this is to
  321.  * pre-load the libraries from the build tree.
  322.  *
  323.  * There should be a better way than this hack...
  324.  */
  325. #if UseElfFormat
  326. #ifndef PreloadFontSetup
  327. #define PreloadFontSetup        LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(XFONTPRELOADPATTERN))`"
  328. #endif
  329. #ifndef PreloadFreetypeSetup
  330. #define PreloadFreetypeSetup    LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN))`"
  331. #endif
  332. #ifndef PreloadXFTSetup
  333. #define PreloadXFTSetup         LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN) $(XFTPRELOADPATTERN) $(XRENDERPRELOADPATTERN) $(FCPRELOADPATTERN))`"
  334. #endif
  335. #endif
  336.  
  337. #ifndef HasCookieMaker
  338. # define HasCookieMaker        YES
  339. # define MkCookieCmd \
  340.     'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
  341. #endif
  342.  
  343. /*
  344.  * A hack to work around an optimization problem with gcc 2.95.2 - 2.95.4
  345.  */
  346. #if (GccMajorVersion == 2 && GccMinorVersion == 95)
  347. # define GccOptBug295
  348. #endif
  349.  
  350. #include <bsdLib.rules>
  351.  
  352. #include <xorg.cf>
  353.  
  354.  
  355.